/**
 *
 * @Author:   tiannanyihao
 * @Date:     2018-09-14 14:18
 * @Profile:  Scale2Size
 * @Project:  MeiTuan

 * @Description: 基于6s手机屏幕的 屏幕尺寸适配
 *
 */


import {Dimensions} from 'react-native'

const ScreenW_6s = 375;
const ScreenH_6s = 667;

const ScreenW = Dimensions.get('window').width;
const ScreenH = Dimensions.get('window').height;

const ScreenFixW = (pt) => {return pt * ScreenW / ScreenW_6s};
const ScreenFixH = (pt) => {return pt * ScreenH / ScreenH_6s};

export {
	ScreenFixW,
	ScreenFixH,
	ScreenW,
	ScreenH
}
